package jnpf.controller;

import jnpf.base.ActionResult;
import jnpf.model.create.dto.CreateVerDTO;
import jnpf.service.EvalCreateVerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/bt/createVer")
public class EvalCreatVerController {

    @Autowired
    private EvalCreateVerService evalCreateVerService;

    @PostMapping("/create")
    public ActionResult evalCreateVer(@RequestBody CreateVerDTO createVerDTO){
        return ActionResult.success(evalCreateVerService.evalCreateVer(createVerDTO));
    }
}
